package com.duoduo.selenium.demo;

import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import com.duoduo.selenium.util.SeleniumUtil;

public class MouseoverTest {

	public static void main(String[] args) {
		SeleniumUtil.setProperties();

		WebDriver driver = new FirefoxDriver();
		driver.get("https://www.baidu.com/");

		SeleniumUtil.waitme(500);
		JavascriptExecutor js = (JavascriptExecutor) driver;
		js.executeScript("$(\"a[name='tj_briicon']\").mouseover()");

		driver.close();
	}
}
